package com.kuang.pet.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.kuang.bascic.baseDomain.Domian;
import com.kuang.org.domain.Shop;
import com.kuang.user.domian.User;
import io.swagger.models.auth.In;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
@Data
public class Pet extends Domian {
    private String name;
    private String resources;
    private BigDecimal saleprice;
    @JsonFormat(pattern = "YYYY:MM:dd")
    private Date offsaletime=new Date();
    @JsonFormat(pattern = "YYYY:MM:dd")
    private Date onsaletime=new Date();
    private Integer state;
    private BigDecimal costprice;
    private Date createtime =new Date();
    private Long type_id;
    private PetType type;
    private Long shop_id;
    private Shop shop;
    private Long user_id;
    private User user;
    private Long search_master_msg_id;
    private Integer auditnum;
    private Long adopt_id;
    private String note;
    private PetDetail detail = new PetDetail();
}
